From: Rui Matos Date: Sun, 26 Jun 2016 17:09:41 +0000 (+0200) Subject: workspacesView: Initialize the adjustment's upper bound X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~831 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=500ea13155b8690b5958efe582c58ca15a733fde;p=gnome-shell.git workspacesView: Initialize the adjustment's upper bound Initializing the upper bound to zero means that on panning we'd start scrolling from the first workspace even if the current workspace when entering the overview was different since StAdjustment clamps the value to be inside bounds. https://bugzilla.gnome.org/show_bug.cgi?id=766883 --- diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js index e0c9249c7..6c66f3e61 100644 --- a/js/ui/workspacesView.js +++ b/js/ui/workspacesView.js @@ -103,7 +103,7 @@ const WorkspacesView = new Lang.Class({ page_increment: 1, page_size: 1, step_increment: 0, - upper: 0 }); + upper: global.screen.n_workspaces }); this.scrollAdjustment.connect('notify::value', Lang.bind(this, this._onScroll));